home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Power 1997 December
/
MACPOWER-1997-12.ISO.7z
/
MACPOWER-1997-12.ISO
/
AMUG
/
PROGRAMMING
/
Raven 1.2.sit
/
Raven 1.2
/
Source
/
Foundation
/
OS
/
ZScrap.h
< prev
next >
Wrap
Text File
|
1997-01-21
|
1KB
|
38 lines
/*
* File: ZScrap.h
* Summary: Some global functions that make it easier to deal with the Scrap Manager.
* Written by: Jesse Jones
*
* Copyright ゥ 1996 Jesse Jones.
* For conditions of distribution and use, see copyright notice in ZTypes.h
*
* Change History (most recent first):
*
* <-> 7/22/96 JDJ Created.
*/
#pragma once
#include <ZHandle.h>
// ===================================================================================
// Functions
// ===================================================================================
bool InScrap(OSType type);
THandle GetScrap(OSType type);
void PutScrap(OSType type, const THandle& data);
// Be sure to call ZeroScrap before adding items!
THandle GetScrap();
// Returns the entire contents of the scrap. This comes in handy when you
// want to do things like save and restore the contents of the scrap. Note
// that these two functions do not throw.
void SetScrap(const THandle& oldScrap);